﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EM
{
    public class EM_BillFare
    {
        /// <summary>
        /// 唯一标识符
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Id { get; set; }
        /// <summary>
        /// 菜名
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Name { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        [Required]
        public float Frice { get; set; }
        /// <summary>
        /// 菜系
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Cuislno { get; set; }
        /// <summary>
        /// 口味
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Taste { get; set; }
        /// <summary>
        /// 添加到菜谱时间
        /// </summary>
        [Required]
        public DateTime AddTime { get; set; }
    }
}
